<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

  <!-- This is the start (home) page of the application. It just displays
  a message. Not very exciting... improvement is possible. -->
  <head>
    <title>SupportIT</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <f:metadata>
         <f:viewParam name="studid" value="#{userbean.userId}" />
    </f:metadata>
  </head>
  <h:body>
    <ui:include src="/templates/layout_user.xhtml" />
      <div class="wrapper">
          
          <a href="#signout" style="float:right; color:#ffa52c; margin-top:-27px;
             font-size:16px; font-weight: bold;">Logg ut</a>
             
             
          <div class="box">
      


	
	<div id="background">
            
		<form id="text_statistic" method="get" action="#users"><b>Moduler</b></form>
		       <div class="back"><a href="me.xhtml?studid=#{userbean.userId}">Tilbake</a></div> 
	<div class="tfclear"></div>
        
        
        </div>
              <br />
    
              
              <h:dataTable style="float:left;" class="zebra" value="#{progresslistbean.getAvailableModules(userbean.userId)}" var="mode" >
                    <h:column>
                          <f:facet name="header">ModulNr</f:facet>
                        <h:link value="Modul #{mode.module.modulenId}" outcome="start-modul.xhtml">
                         
                         <f:param name="studid" value="#{userbean.userId}" />
                         <f:param name="idno" value="#{mode.module.modulenId}" />
                         </h:link>

                    </h:column>  
              
                  <h:column>
                         <f:facet name="header">Tidsfrist</f:facet>
            #{mode.module.timeOut(mode.module.dato)}
                         
                       
                         
                    </h:column>
                  
                  <h:column>
                         <f:facet name="header">Status</f:facet>
            
                     #{mode.isStarted()}    
                         
                    </h:column> 
                  
              </h:dataTable>       
                
             
              
   
        
        
        
       
              
              
              
          </div>
      </div>
  </h:body>
</html>